/**
 * Project Name:demo
 * File Name:DemoController.java
 * Package Name:com.chenxun.demo.controller
 * Date:2016年6月15日下午2:45:59
 * Copyright (c) 2016, www midaigroup com Technology Co., Ltd. All Rights Reserved.
 *
*/

package com.chenxun.demo.controller;

import java.util.Date;

import javax.annotation.PostConstruct;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName:DemoController <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2016年6月15日 下午2:45:59 <br/>
 * @author   陈勋
 * @version  
 * @since    JDK 1.7
 * @see 	 
 */
@Controller
public class DemoController {
	
	
	@CrossOrigin
	@RequestMapping("test")
	public void test(ModelMap map ){	
		map.put("say", "hello world!");
		map.put("now", new Date());
	};

	

}

